home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 3.2
/
Ham Radio Version 3.2 (Chestnut CD-ROMs)(1993).ISO
/
exam
/
g1emmnos
/
autoexec.net
< prev
next >
Wrap
Text File
|
1990-11-12
|
17KB
|
595 lines
# A U T O E X E C . N E T
# -----------------------
#
# This is the configuration file for the NOS.EXE program...
# this file *MUST* be in the root directory ( \ ) of your current disk
# when NOS.EXE is run if you want NOS to use is as the default file.
#
# Note: NOS.EXE ignores all lines beginning with a pound sign (#).
#
# There are many commands which must be provided to NOS.EXE
# each time it is started to configure the program. To keep
# from having to type them by hand each time, we put them in
# this file, which is read each time NOS starts up. Commands
# in this configuration file are entered exactly as they would
# be typed at the keyboard in the program.
#
# We've tried to give you intelligent default values for each of
# the commands below. You need to read completely through this
# file, changing things as you go. If you're not sure what to
# do with a command, try leaving it like it is! Once you become
# familiar with the package, you'll no doubt find things to change.
# Once you're up and running and are all set, you can delete some or
# all of the comment lines (the ones that start with '#') to save
# disk space and make the program load faster, if you wish.
#
#-----------------------------------------------
#
# Turn off the internal stopwatch functions as on the Archimedes they
# don't half hassle the pc emulators speaker driver code..and it BEEPS!
#
watch off
#
#-----------------------------------------------
#
# Just in case we don't have a host name entry in our domain file
# let's ask our domain server at g1emm2 to try and resolve unknowns.
#
# domain addserver g1emm2
#
#
# Set the number of domain.txt entries we are going to cache at any one
# time in memory. This will affect the memory/speed tradeoff.
#
domain cache size 30
#
#-----------------------------------------------
#
# The Domain default suffix for host names without a '.' is '.ampr.org.'
# and the domain.txt file has only names of the format:-
# <host>.ampr. (CNAME) and <host>.ampr.org. (A) in it.
#
domain suffix ampr.org.
#
#-----------------------------------------------
#
# Set the domain ip->hostname translation into operation in non verbose mode
#
domain translate y
#
domain verbose n
#
#-----------------------------------------------
#
# This entry tells NOS.EXE the name of your machine. Your hostname will
# show up in mail headers, etc.
#
hostname g1emm.ampr.org
#
#-----------------------------------------------
#
# The next line does the same thing that "MYCALL" did in your AX.25
# TNC... it identifies the callsign you're using on the air in AX.25
# packets. It also defines the callsign of your net/rom node!!!
#
ax25 mycall g1emm-1
#
#-----------------------------------------------
#
# This one contains your IP address. This can either be in the form
# [44.131.x.y] where x and y are your alloted number values or it can
# use the domain file information and will then take a symbolic node
# name and convert it internally to your IP address. The [] are required
# if you wish to give an absolute address.
#
ip address g1emm
#
#-----------------------------------------------
#
# The next memory commands set the number of buffers and thier sizes in
# the interrrupt memory handler cache. Ax25 doesn't use them at all
# but just in case, here is one.
#
mem ibufsiz 256
#
mem nibufs 1
#
#------------------------------------------------
#
# The attach command tells NOS.EXE about the interfaces in your computer
# that you will be using for TCP/IP. These can include normal IBM-type
# serial "comm ports", Ethernet controllers, or dedicated packet cards.
#
# The syntax is:
# attach <hw type> <I/O address> <vector> <mode> <label> <bufsize>
# <mtu> [<speed>] [IP addr]
#
# COM1: / 9600 baud KISS connection for use with KISS TNC's.
#
attach asy 0x3f8 4 ax25 tnc 2048 256 9600 c
#
# COM2: / 1200 baud KISS connection for use with KISS TNC's.
#
# attach asy 0x2f8 3 ax25 tnc 2048 256 1200
#
# COM1: / 9600 baud slip link to another computer
#
# attach asy 0x3f8 4 slip sl0 8092 576 9600
#
#-------------------------------------------------
#
# The following entry defines the broadcast address for
# the interface labeled 'tnc' in the attach command.
#
ifconfig tnc broadcast uk.ampr.org
#
#-------------------------------------------------
#
# The KISS computer-to-tnc protocol includes a "command packet" that
# you can use to twiddle TNC parameters like TXDELAY, TXTAIL, PERSIST,
# SLOTTIME and DUPLEX. Since most KISS implementations include good
# default values, you shouldn't have to use this feature.
# All TNC's were not created equal, so you *MUST* read the docs for the
# KISS implementation for your TNC before twiddling!
#
# The format is: param <label> <hex value> <hex value> <hex value> ...
#
# TX - Delay (10ms units)
param tnc 1 60
# Persistance (1/256th units)
param tnc 2 32
# Slot time (10ms units)
param tnc 3 20
# TX-tail Delay (10ms units)
param tnc 4 20
# Duplex (0=csma, 1=full)
param tnc 5 0
#
#-------------------------------------------------
#
# The following entry tells the program to route all packets out
# the interface labeled 'tnc' in the attach command.
#
route addprivate default tnc
#
#-------------------------------------------------
#
# Time To Live is the maximum number of hops a packet can take
# before it is thrown away. This command prevents an inadvertent
# infinite loop from occuring with packets in the network.
#
ip ttl 16
#
#-------------------------------------------------
#
# The Maximum Segment Size is the largest single transmission that
# you will send. An mss of 216 corresponds to the mtu of 256 set
# up in the attach command above, overhead bytes considered.
#
tcp mss 216
#
#-------------------------------------------------
#
# Initial Retry TimeouT (irtt) is the time between retries before
# the corrected timers start to function in units of seconds.
# The default is 65 seconds but may be adjusted as required.
#
tcp irtt 5000
#
#-------------------------------------------------
#
# The TCP timer backoff can be either linear or binary exponential.
# Realisically, the linear backoff is vital for Amateur radio work.
#
tcp timertype linear
#
#-------------------------------------------------
#
# The Window parameter establishes the maximum number of bytes
# that may be outstanding before your system expects an ack.
# If window is twice as big as mss, for example, there will be two
# active packets on the channel at any given time... large values of
# window provide improved throughput on full-duplex links, but are a
# problem on the air. Keep mss <= window <= 2*mss if you're on the air.
#
#
tcp window 216
#
#-------------------------------------------------
#
# This entry will open 'logfile' in the \spool directory and will
# record the server activity of your system. If you don't want a log,
# comment out this line... if you do, make sure you have a \spool
# directory!
#
log \spool\logfile
#
#-------------------------------------------------
#
# Each of the servers (services you will provide) must be turned
# on before they will be active. The following entries turn all
# of them on. To turn any function off use the command 'stop' after
# NOS gets fired up, or just comment out the line here.
#
start ax25
start netrom
start echo
start discard
start telnet
start ftp
start smtp
start finger
start remote
start ttylink
start pop
# start rip
#
#--------------------------------------------------
#
# Cause the SMTP server to look for new mail to send every 10 minutes
#
smtp timer 600
#
#--------------------------------------------------
#
# Set the remote server password field
#
remote -s dummy
#
#--------------------------------------------------
#
# Cause the SMTP server to send undeliverable mail to gb3xp for forwarding
#
smtp gateway gb3xp
#
#--------------------------------------------------
#
# Cause the SMTP server to queue mail for SMTP mailer or ext. mailer
#
smtp mode route
#
#--------------------------------------------------
#
# These values come into play when you are operating in the
# AX.25 mode, along with your ax25 mycall entry above.
#
# If you want to operate as a digipeater (for those poor souls
# not operating TCP/IP!), change 'off' to 'on'.
#
ax25 digipeat on
#
#-------------------------------------------------
#
# Use AX25 protocol version 2 as most people have now migrated from 1.
#
ax25 version 2
#
#---------------------------------------------------
#
# Maxframe sets the max number of frames allowed to remain
# unacknowledged. Cannot be greater than 7. Low values are best.
#
ax25 maxframe 2
#
#---------------------------------------------------
#
# Maximum size of packet which will have its data resent with the POLL
# bit set on retry, else, just RR (p) instead of I (p)
#
ax25 pthresh 128
#
#---------------------------------------------------
#
# Paclen limits the size of I=fields.
#
ax25 paclen 256
#
#---------------------------------------------------
#
# Retry limits the number of unsuccessful retransmissions.
#
ax25 retry 5
#
#---------------------------------------------------
#
# Set up the AX25 initial round-trip timer in milliseconds.
# The old T1 value is now taken to be 2*irtt and is variable.
#
ax25 irtt 2500
#
#---------------------------------------------------
#
# Set up the AX25 Link Keep-Alive timer T3 in milli-seconds.
#
ax25 t3 65000
#
#---------------------------------------------------
#
# Set up the AX25 Link Redundancy timer T4 in seconds.
#
ax25 t4 300
#
#-------------------------------------------------
#
# The AX25 timer backoff can be either linear or binary exponential.
# Realisically, the linear backoff is vital for Amateur radio work.
#
ax25 timertype linear
#
#---------------------------------------------------
#
# ax25 window sets the number of bytes that can be pending on an
# AX.25 receive queue before sending RNRs back to sender.
#
ax25 window 2048
#
#---------------------------------------------------
#
# Set up the ax25 beacon text and broadcast interval
#
ax25 bctext "G1EMM - Tcp/Ip station - 44.131.7.6 - IO91oe"
#
ax25 bcinterval 1799
#
#---------------------------------------------------
#
# Start tracing the previously defined `tnc' line with 111 which is
# trace all input and output packets and dump in ASCII only.
# Value pattern is:-
# B:D:I:O
# | | | |__Output packets 0 or 1 1 = trace / 0 = don't
# | | |____Input packets 0 or 1 1 = trace / 0 = don't
# | |______Dump level 0 or 1 or 2 0=headers / 1=ascii / 2=hex
# |________Broadcasts 0 or 1 0 = trace / 1 = don't
#
#
#trace tnc 0111
#
#---------------------------------------------------
#
# Set up the NET/ROM pseudo device so that NOS knows that netrom is used.
#
attach netrom
#
#---------------------------------------------------
#
# Tell NET/ROM what line to use and what we are called, ie. our alias.
# Also define a default quality factor for incoming NET/ROM broadcasts.
#
netrom interface tnc farnhm 10
#
#---------------------------------------------------
#
# Set NET/ROM broadcast reception to only specifically named nodes.
#
netrom nodefilter mode accept
#
#---------------------------------------------------
#
# Set the NET/ROM inter-broadcast time to 30 minutes
#
netrom nodetimer 1800
#
#---------------------------------------------------
#
# Set the NET/ROM obsolesence timer to 20 minutes. Each time it fires
# we will derate the nodes in our tables. A non-refreshed node broadcast
# will vanish in about 2 hours then. This may reduce garbage faster?!
#
netrom obsotimer 1200
#
#---------------------------------------------------
#
# Set NET/ROM mode to switch rather then endpoint. We will tell the world
# about the nodes we can hear and not just ourself.
#
netrom verbose yes
#
#---------------------------------------------------
#
# Set NET/ROM minimum acceptable incoming broadcast level before we will
# build the nodes into our tables. Keeps out longshots!
#
netrom minquality 10
#
#---------------------------------------------------
#
# NET/ROM Time To Live is the maximum number of hops a packet can take
# before it is thrown away. This command prevents an inadvertent
# infinite loop from occuring with packets in the netrom network.
#
netrom ttl 15
#
#---------------------------------------------------
#
# Set NET/ROM acknowledge timer value in milliseconds
#
netrom acktime 3000
#
#---------------------------------------------------
#
# Set NET/ROM maximum number of bytes on the netrom queues (I think!)
#
netrom qlimit 1024
#
#---------------------------------------------------
#
# Set NET/ROM maximum number of retries before disconnecting
#
netrom retries 5
#
#---------------------------------------------------
#
# Set NET/ROM initial round-trip timer in milli-seconds.
#
netrom irtt 5000
#
#---------------------------------------------------
#
# Set NET/ROM promiscuous acceptance of broadcasts at minimum quality.
#
netrom promiscuous y
#
#-------------------------------------------------
#
# The NET/ROM timer backoff can be either linear or binary exponential.
# Realisically, the linear backoff is vital for Amateur radio work.
#
netrom timertype linear
#
#---------------------------------------------------
#
# Let the world know that we are alive and kicking. Three broadcasts
# just to make sure that most people will be able to catch one of them!
#
netrom bcnodes tnc
#
#---------------------------------------------------
#
# Use I frames for ax25 traffic instead of UI frames.
#
mode tnc vc
#
#---------------------------------------------------
#
# Use I frames for NET/ROM traffic instead of UI frames. (Is there a choice?)
#
mode netrom vc
#
#---------------------------------------------------
#
# Initial state of the system is that the is no manual operator present.
#
attended no
#
#---------------------------------------------------
#
# Initial state of the mailbox is that the is no manual operator present.
#
mbox attend no
#
#---------------------------------------------------
#
# Bring in all the variable parameters relating to the outside world.
#
# First bring in all the remote NET/ROM nodes for filtering.
#
source /etc/nodes.fil
#
# Next bring in all the remote Tcp/Ip nodes ARP definitions.
#
source /etc/nodes.arp
#
# Next bring in all the AX25 route and modes definitions.
#
source /etc/nodes.axr
#
# Lastly bring in all the remote Tcp/Ip nodes route definitions.
#
source /etc/nodes.rou
#
#---------------------------------------------------
#
# Define the RIP setup and request a broadcast to load the tables.
#
# rip merge n
#
# rip add uk.ampr.org 900 6
#
# rip refuse g4hpe
# rip refuse g1maa
# rip refuse g6vug
# rip refuse g6kqz
# rip refuse g3rra
# rip refuse g4bio
# rip refuse g1wkk
# rip refuse g6xqb
# rip refuse g1plt
# rip refuse g4uqe
# rip refuse g8ogr
# rip refuse g0hwc
#
# rip request uk.ampr.org
#
#---------------------------------------------------
#
# Define the RSPF setup
#
rspf interface tnc 8 32
#
rspf rrhtimer 900
#
rspf suspecttimer 2000
#
rspf timer 900
#
rspf message "RSPF routing in use. RIP disabled!"
#
#---------------------------------------------------
#
# Set up the hop check (route tracer) environment.
#
hopcheck maxw 60
#
hopcheck maxt 10
#
hopcheck q 2
#
#---------------------------------------------------
#
# Get Every NOS node in range to emit their netrom broadcasts
# to load our tables. Very heavy on bandwidth!!!
#
remote uk.ampr.org kick
#
#---------------------------------------------------
#
# Wake up the SMTP process to start shipping any outstanding mail.
#
smtp kick
#
#---------------------------------------------------
#
# Wake up the POP process to start shipping any outstanding mail.
#
pop mailbox g1emm
#
pop userdata g1emm kelvin
#
pop mailhost g3rra.ampr.org
#
pop kick
#
pop mailhost g1wkk.ampr.org
#
pop kick
#
#---------------------------------------------------
#
# Disallow third-party mail as we have no license to accept it.
#
third-party n
#
#---------------------------------------------------
#
# Change to the /pub/tmp directory to allow temp files to be build there.
#
cd /pub/tmp
#
#---------------------------------------------------
#
# set the system wide message of the day
#
motd "If I'm not about, please leave a message in the mailbox. 73, Kelv."
#
#---------------------------------------------------
#
# set the mailbox / bbs message of the day
#
mbox motd "If the station is unattended, please feel free to leave a message. 73, Kelv."
#
#---------------------------------------------------
#
# THE END
#